use "capitalflows.dta", clear

*************************
* Table B1, columns 1-5
*************************

eststo: newey net_noneuro spread, lag(3)
eststo: newey net_europe spread, lag(3)
eststo: newey inflows_europe spread, lag(3)
eststo: newey outflows_europe spread, lag(3)
eststo: newey lendingspread spread, lag(3)

*************************
* Table B2, columns 1-5
*************************

keep if year>2006

eststo: newey net_noneuro spread, lag(3)
eststo: newey net_europe spread, lag(3)
eststo: newey inflows_europe spread, lag(3)
eststo: newey outflows_europe spread, lag(3)
eststo: newey lendingspread spread, lag(3)

********************************
* Tables B1 and B2, column 6
********************************

use "bank_data.dta", clear

reghdfe foreignassets spread, absorb(bank) cluster(bank) 
reghdfe foreignassets spread if year>2006, absorb(bank) cluster(bank)